package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.common.dto.SkuDTO;
import com.leyou.common.dto.SpecParamDTO;
import com.leyou.common.dto.SpuDTO;
import com.leyou.item.entity.Sku;
import com.leyou.item.entity.Spu;

import java.util.List;

public interface GoodService extends IService<Spu> {

    PageDTO<SpuDTO> findGoodPage(Long brandId, Long categoryId, Long id, Long page, Long rows, Boolean saleable);

  SpuDTO QuerySpuAndSkuAndSpuDetails(Long id);
    //新增商品
    void addGoods(SpuDTO spuDTO);
    //根据spuId查询spu的所有规格参数值
    List<SpecParamDTO> QuerySpectParam(Long id, Boolean searching);
     //修改商品上下架
    void modifyGoods(Long id, Boolean saleable);
     //修改商品
    void modifyGood(SpuDTO spuDTO);
}
